package linyunshi.rbac.service;

import linyunshi.rbac.domain.dto.DeptDto;
import linyunshi.rbac.domain.dto.UserDto;
import linyunshi.rbac.domain.entity.Dept;
import linyunshi.rbac.domain.entity.User;
import linyunshi.rbac.domain.vo.Result;

/**
 * 业务层接口-用户
 *
 * @author linyunshi
 * @since 2025/6/8 16:13
 */
public interface IUserService extends IBaseService<User, UserDto>{

    boolean deptInUse(int deptId);

    boolean roleInUse(int roleId);

    Result toggle(int id);

}
